package demo;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class HelloWorld {
    public static void main(String[] args) {
        try(FileOutputStream fos=new FileOutputStream("fos.txt");) {
            String str="大家好~";
            fos.write(str.getBytes(StandardCharsets.UTF_8));
            System.out.println("写出完毕");
            System.out.println("分支上进行了修改操作");
            System.out.println("主线上添加了一句代码！");
            System.out.println("分支上又修改了一行内容");
            System.out.println("今天感觉心情有点郁闷");
            System.out.println("suoga");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}


